package com.losdun.common.utils;

import org.bouncycastle.jcajce.provider.digest.SHA3;
import org.bouncycastle.util.encoders.Hex;

/**
 * @Description
 * @Author Sword.Ye
 * @Date 2025/8/22
 **/
public class EncryptUtils {


    public static String encryptSHA3224(String targetStr) {
        SHA3.Digest224 digest = new SHA3.Digest224();
        byte[] hash = digest.digest(targetStr.getBytes());
        return Hex.toHexString(hash);
    }
}
